import { S } from '../s';
import { IPSControlParam } from './ipscontrol-param';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSControlParamImpl
  extends PSModelObjectImpl
  implements IPSControlParam
{
  get ctrlParams(): IModel {
    return this.M.ctrlParams;
  }

  get height(): number {
    return this.M.height;
  }

  get width(): number {
    return this.M.width;
  }
  get cls(): string {
    return 'PSControlParamImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._127) return true;
    return super.instanceof(cls);
  }
}
